#ifndef _TILE_H_
#define _TILE_H_

#include "SpriteBased.h"

class Tile:public SpriteBased
{
public:
	Tile(const SQChar* path=0);
	void setRect(int left,int top,int bottom,int right);
	virtual void serialize(SquirrelObject& out) const;
	virtual void deserialize(SquirrelObject& in);
	virtual ~Tile();
private:
	sf::Rect<int> tilerect;
	wstring path;
};

#endif